﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013A3 RID: 5027
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeTalkRewardScRsp : IMessage<TakeTalkRewardScRsp>, IMessage, IEquatable<TakeTalkRewardScRsp>, IDeepCloneable<TakeTalkRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F63 RID: 16227
		// (get) Token: 0x0600E11F RID: 57631 RVA: 0x00259F51 File Offset: 0x00258151
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeTalkRewardScRsp> Parser
		{
			get
			{
				return TakeTalkRewardScRsp._parser;
			}
		}

		// Token: 0x17003F64 RID: 16228
		// (get) Token: 0x0600E120 RID: 57632 RVA: 0x00259F58 File Offset: 0x00258158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeTalkRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F65 RID: 16229
		// (get) Token: 0x0600E121 RID: 57633 RVA: 0x00259F6A File Offset: 0x0025816A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeTalkRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600E122 RID: 57634 RVA: 0x00259F71 File Offset: 0x00258171
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeTalkRewardScRsp()
		{
		}

		// Token: 0x0600E123 RID: 57635 RVA: 0x00259F7C File Offset: 0x0025817C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeTalkRewardScRsp(TakeTalkRewardScRsp other) : this()
		{
			this.aGCKLENADNO_ = other.aGCKLENADNO_;
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E124 RID: 57636 RVA: 0x00259FD4 File Offset: 0x002581D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeTalkRewardScRsp Clone()
		{
			return new TakeTalkRewardScRsp(this);
		}

		// Token: 0x17003F66 RID: 16230
		// (get) Token: 0x0600E125 RID: 57637 RVA: 0x00259FDC File Offset: 0x002581DC
		// (set) Token: 0x0600E126 RID: 57638 RVA: 0x00259FE4 File Offset: 0x002581E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AGCKLENADNO
		{
			get
			{
				return this.aGCKLENADNO_;
			}
			set
			{
				this.aGCKLENADNO_ = value;
			}
		}

		// Token: 0x17003F67 RID: 16231
		// (get) Token: 0x0600E127 RID: 57639 RVA: 0x00259FED File Offset: 0x002581ED
		// (set) Token: 0x0600E128 RID: 57640 RVA: 0x00259FF5 File Offset: 0x002581F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F68 RID: 16232
		// (get) Token: 0x0600E129 RID: 57641 RVA: 0x00259FFE File Offset: 0x002581FE
		// (set) Token: 0x0600E12A RID: 57642 RVA: 0x0025A006 File Offset: 0x00258206
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600E12B RID: 57643 RVA: 0x0025A00F File Offset: 0x0025820F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeTalkRewardScRsp);
		}

		// Token: 0x0600E12C RID: 57644 RVA: 0x0025A020 File Offset: 0x00258220
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeTalkRewardScRsp other)
		{
			return other != null && (other == this || (this.AGCKLENADNO == other.AGCKLENADNO && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E12D RID: 57645 RVA: 0x0025A080 File Offset: 0x00258280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AGCKLENADNO != 0U)
			{
				num ^= this.AGCKLENADNO.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E12E RID: 57646 RVA: 0x0025A0EE File Offset: 0x002582EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E12F RID: 57647 RVA: 0x0025A0F6 File Offset: 0x002582F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E130 RID: 57648 RVA: 0x0025A100 File Offset: 0x00258300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.Reward);
			}
			if (this.AGCKLENADNO != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.AGCKLENADNO);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E131 RID: 57649 RVA: 0x0025A178 File Offset: 0x00258378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AGCKLENADNO != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AGCKLENADNO);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E132 RID: 57650 RVA: 0x0025A1E8 File Offset: 0x002583E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeTalkRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AGCKLENADNO != 0U)
			{
				this.AGCKLENADNO = other.AGCKLENADNO;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E133 RID: 57651 RVA: 0x0025A264 File Offset: 0x00258464
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E134 RID: 57652 RVA: 0x0025A270 File Offset: 0x00258470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 40U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.AGCKLENADNO = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x04005921 RID: 22817
		private static readonly MessageParser<TakeTalkRewardScRsp> _parser = new MessageParser<TakeTalkRewardScRsp>(() => new TakeTalkRewardScRsp());

		// Token: 0x04005922 RID: 22818
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005923 RID: 22819
		public const int AGCKLENADNOFieldNumber = 5;

		// Token: 0x04005924 RID: 22820
		private uint aGCKLENADNO_;

		// Token: 0x04005925 RID: 22821
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04005926 RID: 22822
		private uint retcode_;

		// Token: 0x04005927 RID: 22823
		public const int RewardFieldNumber = 2;

		// Token: 0x04005928 RID: 22824
		private ItemList reward_;
	}
}
